﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Finance.IDal
{
    public interface IOrgDal
    {
        bool Save(int id, string name);

        bool Delete(int id);

        IEnumerable<Entity.OrgEntity> List(string name, int pageIndex, int pageSize, out int total);

        IEnumerable<Entity.OrgEntity> List();
    }
}
